
const user = {
    state: {
        //全局保存用户信息
        userInfo:{}
    },
    mutations: {
        updateUserInfo(state, payload) {
            state.userInfo = payload.userInfo
        }
    }
};

export default user;
